Package-level declarations

Types

Link copied to clipboard
open class ActiveButtonWidget @JvmOverloads constructor(titleSupplier: Supplier<Text>, width: Int, height: Int, activeSupplier: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, textures: TextureSet = DEFAULT_TEXTURES) : CustomPressableWidget

A Button Widget that can supply its message and active state, and render a custom background

Link copied to clipboard
class ClickableTextWidget(parent: Screen, message: Text, textRenderer: TextRenderer) : AbstractTextWidget

An AbstractTextWidget that can process click and hover actions on rendered text

Link copied to clipboard

A widget that will open a fzzy config screen directly on press.

Link copied to clipboard
class LabelWrappedWidget(child: ClickableWidget, label: Text, showLabel: Boolean = true) : ClickableWidget, TooltipChild

A widget that wraps another widget with a display label. The label will appear under the widget aligned left

Link copied to clipboard
class LayoutClickableWidget(x: Int, y: Int, width: Int, height: Int, layout: LayoutWidget) : ClickableWidget, ParentElement, TooltipChild

Clickable widget that contains a LayoutWidget which provides and lays out children of this widget. The layout will be automatically constrained to the dimensions of the widget, and updated as the position and size changes.

Link copied to clipboard
class LayoutWidget @JvmOverloads constructor(x: Pos = AbsPos(0), y: Pos = AbsPos(0), paddingW: Int = 8, paddingH: Int = paddingW, spacingW: Int = 4, spacingH: Int = spacingW) : Widget, Scalable

A powerful widget used to heuristically layout out multiple element widgets in a manner akin to web DOM layout. Widgets stored in a layout can be automatically repositioned, scaled, queried, and categorized. NOTE: LayoutWidget is not a ParentElement, it is expected that you extract the elements from the layout and add them as children to a parent that contains this layout. The layout is only for positioning.

Link copied to clipboard
class OnClickTextFieldWidget(textSupplier: Supplier<String>, onClick: OnClickTextFieldWidget.OnInteractAction) : TextFieldWidget

A button widget that masquerades as a text field widget. The text within is not editable.

Link copied to clipboard
object Popups
Link copied to clipboard
class PopupWidget : ParentElement, Narratable, Drawable, SuggestionWindowListener

A widget comprised of a collection of child elements that "Pops up" onto screens that implement me.fzzyhmstrs.fzzy_config.screen.PopupParentElement

Link copied to clipboard
interface Scalable

Provides a set width/height method for parents of implementing widgets

Link copied to clipboard

A ValidationBackedTextFieldWidget that provides suggestions for string completion to the user

Link copied to clipboard
class SuppliedTextWidget(messageSupplier: Supplier<Text>, textRenderer: TextRenderer, width: Int, height: Int) : AbstractTextWidget, TooltipChild

An AbstractTextWidget that renders text from a supplier of text, not a static text instance

Link copied to clipboard
open class TextlessActionWidget(activeIcon: Identifier, inactiveIcon: Identifier, highlightedIcon: Identifier, activeNarration: Text, inactiveNarration: Text, activeSupplier: Supplier<Boolean>, pressAction: Consumer<TextlessActionWidget>, renderBackground: Boolean) : CustomPressableWidget

A button widget that is 20x20 pixels and displays a sprite instead of a textual message

Link copied to clipboard

Defines standard widget sprites used throughout Fzzy Config. May be useful for custom widgets, popups, etc.

Link copied to clipboard
object TextureIds

Defines standard widget sprites used throughout Fzzy Config. May be useful for custom widgets, popups, etc.

Link copied to clipboard
data class TextureSet(tex: Identifier, disabled: Identifier, highlighted: Identifier)

A set of textures used for enabled, disabled, and focused contexts of an element. All three textures can be the same, in which case the texture rendered is of course the same no matter the state of the underlying object.

Link copied to clipboard
interface TooltipChild

A TooltipChild is a child of some parent element that may or may not need to present tooltip and narration information to its parent. This system is used to compile tooltips and narrations from pieces rather than having to manually build the final tooltip in the parent, or having whichever elements tooltip that renders last "winning".

Link copied to clipboard
open class ValidationBackedNumberFieldWidget<T : Number>(width: Int, height: Int, wrappedValue: Supplier<T>, choiceValidator: ChoiceValidator<T>, validationProvider: Function<Double, ValidationResult<T>>, applier: Consumer<T> = Consumer { _ ->}, renderStatus: Boolean = true, increment: Double = 0.0) : TextFieldWidget, TooltipChild

A TextFieldWidget for entering number values, backed by validation of some sort.

Link copied to clipboard
open class ValidationBackedTextFieldWidget(width: Int, height: Int, wrappedValue: Supplier<String>, choiceValidator: ChoiceValidator<String>, validator: EntryValidator<String>, applier: Consumer<String>) : TextFieldWidget

A TextFieldWidget backed by string validation that can consume and apply strings from/to an outside source

Link copied to clipboard
class VerticalSliderWidget(wrappedValue: Supplier<Double>, x: Int, y: Int, width: Int, height: Int, message: Text, valueApplier: Consumer<Double>) : ClickableWidget

A vertically oriented SliderWidget, works as one would expect a sldier widget to work, but doesn't render the slider value that needs to be done separately via the valueApplier